Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

dorimedini-starkware commented Oct 1, 2025

@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch 2 times, most recently from 862a7c8 to 3f5741e Compare October 1, 2025 10:17
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from 54669b5 to 331d175 Compare October 5, 2025 07:45
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from 3f5741e to c37d283 Compare October 5, 2025 07:45
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from 331d175 to eccbbad Compare October 5, 2025 09:37
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from c37d283 to f82250a Compare October 5, 2025 09:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from eccbbad to da2f80a Compare October 6, 2025 16:50
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from 6ba2a44 to 3de0895 Compare October 14, 2025 10:21
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from 55c8825 to 93ca899 Compare October 14, 2025 10:21
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from 3de0895 to ac793d6 Compare October 15, 2025 11:16
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from 93ca899 to b5d5d74 Compare October 15, 2025 11:16
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch 2 times, most recently from 5f4fc35 to 65aee29 Compare October 19, 2025 18:42
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from b5d5d74 to e619f3e Compare October 19, 2025 18:42
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from 65aee29 to cd53bd6 Compare October 22, 2025 10:23
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from e619f3e to b252323 Compare October 22, 2025 10:23
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors branch from cd53bd6 to bce8534 Compare October 22, 2025 15:02
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from b252323 to e874fe5 Compare October 22, 2025 15:02
@dorimedini-starkware dorimedini-starkware force-pushed the 10-01-starknet_os_flow_tests_localize_expected_storage_updates_in_test_os_logic branch from e874fe5 to 661ee19 Compare October 22, 2025 15:58
@dorimedini-starkware dorimedini-starkware changed the base branch from 10-01-starknet_os_flow_tests_migrate_test_os_logic_and_some_small_refactors to main October 22, 2025 15:58
Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@meship-starkware reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @Yoni-Starkware)


crates/starknet_os_flow_tests/src/tests.rs line 424 at r4 (raw file):

            })
            .or_insert_with(|| HashMap::from([(key, value)]));
    };

Why, as an inline function, is it only relevant for this test?

Code quote:

    let mut update_expected_storage = |address: ContractAddress, key: Felt, value: Felt| {
        let key = StarknetStorageKey(StorageKey(key.try_into().unwrap()));
        let value = StarknetStorageValue(value);
        expected_storage_updates
            .entry(address)
            .and_modify(|map| {
                map.insert(key, value);
            })
            .or_insert_with(|| HashMap::from([(key, value)]));
    };

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware, @meship-starkware, and @Yoni-Starkware)


crates/starknet_os_flow_tests/src/tests.rs line 424 at r4 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

Why, as an inline function, is it only relevant for this test?

yes, IIRC I didn't have use for this in another test, though I may be wrong... if I am please block me, I'll extract into a shared util.
also, inlining this means I don't have to inject expected_storage_updates as a parameter

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit cf42217 Oct 23, 2025
8 checks passed
Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


crates/starknet_os_flow_tests/src/tests.rs line 424 at r4 (raw file):

Previously, dorimedini-starkware wrote…

yes, IIRC I didn't have use for this in another test, though I may be wrong... if I am please block me, I'll extract into a shared util.
also, inlining this means I don't have to inject expected_storage_updates as a parameter

I took a look at the test, and it seems like this is the only one with a large storage update, except for meta tx, but this function will not help there. So I think we can keep it as is

@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants